<template>
  <div id="app">
    <ul>
      <router-link to="/about" tag="li">关于公司</router-link>
      <router-link to="/contact" tag="li">联系我们</router-link>
    </ul>
    <router-view/>
  </div>
</template>

<script>

export default {
  name: 'App'
}
</script>

<style scoped>
ul,li,h1 {
  padding: 0;
  margin: 0;
  list-style: none;
}
#app {
  width: 100%;
  display: flex;
  flex-direction: row;
}
ul {
  width: 200px;
  flex-direction: column;
  color: #fff;
}
li {
  flex: 1;
  background: #000;
  margin: 5px auto;
  text-align: center;
  line-height: 30px;
}
</style>
